package dongshi.daddy.adaptive;

import com.alibaba.dubbo.common.extension.ExtensionLoader;

public class FruitGranter$Adaptive implements dongshi.daddy.adaptive.FruitGranter {
    public java.lang.String watering(com.alibaba.dubbo.common.URL arg0) {
        if (arg0 == null) throw new IllegalArgumentException("url == null");
        com.alibaba.dubbo.common.URL url = arg0;
        String extName = url.getParameter("find.fruit.extenstion", "apple");
        if (extName == null)
            throw new IllegalStateException("Fail to get extension(dongshi.daddy.adaptive.FruitGranter) name from url(" + url.toString() + ") use keys([find.fruit.extenstion])");
        dongshi.daddy.adaptive.FruitGranter extension = (dongshi.daddy.adaptive.FruitGranter) ExtensionLoader.getExtensionLoader(dongshi.daddy.adaptive.FruitGranter.class).getExtension(extName);
        return extension.watering(arg0);
    }

    public dongshi.daddy.adaptive.Fruit grant() {
        throw new UnsupportedOperationException("method public abstract dongshi.daddy.adaptive.Fruit dongshi.daddy.adaptive.FruitGranter.grant() of interface dongshi.daddy.adaptive.FruitGranter is not adaptive method!");
    }
}